package com.example.ordersservice.client;

import com.example.commonutils.R;
import com.example.commonutils.vo.OrderCustomerCommon;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

@Component
@FeignClient("service-customer")
public interface CustomerClient {
    //根据用户id获取用户信息
    @GetMapping("/customerservice/customer/getCustomerInfoById/{customerId}")
    OrderCustomerCommon getCustomerInfoById(@PathVariable("customerId") String customerId);
}
